package com.example.pceb.service.Impl;

import com.example.pceb.entity.Student;
import com.example.pceb.mapper.StudentMapper;
import com.example.pceb.service.StudentService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class StudentServiceImpl implements StudentService {
    @Resource
    private StudentMapper studentMapper;

    @Override
    public Student findByUsername(String username) {
        return studentMapper.selectById(username); // 以 username 为主键,查询对应学生的获奖情况
    }
}
